package com.bos.data.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * create by tanghuihong 2018/6/13
 */
@Entity
@Table(name = "Business", schema = "dbo", catalog = "userdb")
public class BusinessModel {
    private int id;
    private String isSign;
    private Timestamp bDate;
    private String isCheck;
    private BigDecimal cPrice;
    private String isVoice;
    private Timestamp inDate;
    private String isPlay;
    private Timestamp playDate;
    private String bRemarks;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "isSign")
    public String getIsSign() {
        return isSign;
    }

    public void setIsSign(String isSign) {
        this.isSign = isSign;
    }

    @Basic
    @Column(name = "bDate")
    public Timestamp getbDate() {
        return bDate;
    }

    public void setbDate(Timestamp bDate) {
        this.bDate = bDate;
    }

    @Basic
    @Column(name = "isCheck")
    public String getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(String isCheck) {
        this.isCheck = isCheck;
    }

    @Basic
    @Column(name = "cPrice")
    public BigDecimal getcPrice() {
        return cPrice;
    }

    public void setcPrice(BigDecimal cPrice) {
        this.cPrice = cPrice;
    }

    @Basic
    @Column(name = "isVoice")
    public String getIsVoice() {
        return isVoice;
    }

    public void setIsVoice(String isVoice) {
        this.isVoice = isVoice;
    }

    @Basic
    @Column(name = "inDate")
    public Timestamp getInDate() {
        return inDate;
    }

    public void setInDate(Timestamp inDate) {
        this.inDate = inDate;
    }

    @Basic
    @Column(name = "isPlay")
    public String getIsPlay() {
        return isPlay;
    }

    public void setIsPlay(String isPlay) {
        this.isPlay = isPlay;
    }

    @Basic
    @Column(name = "playDate")
    public Timestamp getPlayDate() {
        return playDate;
    }

    public void setPlayDate(Timestamp playDate) {
        this.playDate = playDate;
    }

    @Basic
    @Column(name = "bRemarks")
    public String getbRemarks() {
        return bRemarks;
    }

    public void setbRemarks(String bRemarks) {
        this.bRemarks = bRemarks;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BusinessModel that = (BusinessModel) o;
        return id == that.id &&
                Objects.equals(isSign, that.isSign) &&
                Objects.equals(bDate, that.bDate) &&
                Objects.equals(isCheck, that.isCheck) &&
                Objects.equals(cPrice, that.cPrice) &&
                Objects.equals(isVoice, that.isVoice) &&
                Objects.equals(inDate, that.inDate) &&
                Objects.equals(isPlay, that.isPlay) &&
                Objects.equals(playDate, that.playDate) &&
                Objects.equals(bRemarks, that.bRemarks);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, isSign, bDate, isCheck, cPrice, isVoice, inDate, isPlay, playDate, bRemarks);
    }
}
